package com.mvw.tetrominoes.event {
	
	import flash.events.Event;
	
	/**
	 * Represents a change in score.
	 */
	public class ScoreChange extends Event {
		
		public static const SCORE_CHANGE:String = "urn:tetrominoes:event:score";
		
		private var _change:int;
		
		/**
		 * Instantiates the superclass Event.
		 * 
		 * @param type A unique String identifying the event.
		 */
		public function ScoreChange(type:String, change:int):void {
			super(type);	
			_change = change;
		}
		
		/**
		 * Change in score value.
		 * 
		 * @return Returns the change in score.
		 */
		public function get change():int {
			return _change;
		}
	}
}